<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Array.from()</title>
	</head>
	<body>
		<script>
			console.log(Array.from('foo'));
			// expected output: Array ["f", "o", "o"]

			console.log(Array.from([1, 2, 3], (x) => x + x));
			// expected output: Array [2, 4, 6]
		</script>
	</body>
</html>
